<template>
	<view>
		<view class="wallet">
			<view class="title">
				可用余额（元）
			</view>
			<view class="balance">
				{{userInfo.money}}
			</view>
			<view class="btnGroup">
				<view class="btn" @click="goRecharge">
					充值
				</view>
			</view>
		</view>
		<view class="cellGroup">
			<view class="cell" @click="goMoneyDetail">
				<text>资金明细</text>
				<u-icon name="arrow-right" size="16" color="#000"></u-icon>
			</view>

		</view>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex'
	export default {
		data() {
			return {
				money: 0,

			}
		},
		onLoad(option) {


		},
		computed: {
			...mapState(['userInfo']),
		},
		methods: {
			goMoneyDetail() {

			},
			goRecharge() {
				uni.navigateTo({
					url: './recharge'
				})
			},

		}
	}
</script>
<style>
	page {
		background-color: #F6F6F6;
	}
</style>
<style lang="scss" scoped>
	.wallet {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 710rpx;
		height: 400rpx;
		border-radius: 10rpx;
		margin: 20rpx 20rpx 30rpx;
		background: url(http://image.xjsdd.com/upload/20230216/58fa692e8ce52afdeaec14e5b6412b75.png) no-repeat center;
		color: #fff;

		.title {
			font-size: 34rpx;
			margin: 32rpx 0 0;
		}

		.balance {
			font-size: 80rpx;
			margin: 40rpx 0 0;
			font-weight: 500;
		}

		.btnGroup {
			width: 100%;
			box-sizing: border-box;
			display: flex;
			justify-content: center;
			align-items: center;
			padding: 0 40rpx;
			margin-top: 60rpx;
			margin-bottom: 20rpx;


			.btn {
				width: 260rpx;
				height: 90rpx;
				background-color: #fff;
				color: #2ABDA7;
				font-size: 34rpx;
				font-weight: 500;
				border-radius: 10rpx;
				line-height: 90rpx;
				text-align: center;
			}
		}

	}

	.cellGroup {
		background-color: #fff;
		border-radius: 5rpx;
		font-size: 30rpx;
		color: #000;
		margin: 0 20rpx;

		.cell {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 30rpx 20rpx;

		}
	}
</style>